import { IsDateString, IsNotEmpty, IsString } from "class-validator";

export class CreateRoleDto {

  @IsNotEmpty()
  @IsString()
  code: string;

  @IsNotEmpty()
  @IsString()
  roleName: string;

  @IsNotEmpty()
  @IsString()
  remark: string;

  @IsNotEmpty()
  @IsDateString()
  updateTime: Date;
}
